package com.ruoyi.web.controller.teacher;


import com.ruoyi.common.core.domain.R;
import com.ruoyi.domain.CommanderGrade;
import com.ruoyi.domain.SummaryContent;
import com.ruoyi.service.SummaryContentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/summaryContent")
public class SummaryContentController {

    @Autowired
    private SummaryContentService summaryContentService;
    @PostMapping("/submitSummaryContent")
    public R submitSummaryContent(@RequestBody SummaryContent summaryContent){
       return summaryContentService.submitSummaryContent(summaryContent);
    }




    @GetMapping("/getSummary")
    public R getSummary(@Param("caseId") String caseId){
        return summaryContentService.getSummary(caseId);
    }



    @PostMapping("/updateSummary")
    public R updateSummary(@RequestBody SummaryContent summaryContent){
        return summaryContentService.updateSummary(summaryContent);
    }



}
